import http from '@/utils/request'

// 登录
export const reqLogin = (data) => {
  return http({
    method: 'post',
    url: '/sys/login',
    data
  })
}
// 获取个人信息资料
export const reqGetInfo = () => {
  return http({
    method: 'post',
    url: '/sys/profile'
  })
}
// 获取用户基本信息
export const reqGetUserDetailById = id => {
  return http({
    method: 'get',
    url: `/sys/user/${id}`
  })
}
